<div class="box box-maxbid">
	<div class="box-header">
		<h3 class="box-title">Leiloeiros Cadastro / Edi&ccedil;&atilde;o</h3>
	</div>
	<!-- /.box-header -->
	<!-- form start -->

	<div class="overlay" ng-show="hideform"></div>
	<div class="loading-img" ng-show="hideform"></div>

	<form role="form" name="LeiloeiroForm">
		<div class="box-body">
			<div class="row">
				<div class="col-md-2 col-xs-2 form-group">
					<label for="InputREGISTRO">REGISTRO</label> <input
						ng-model="leiloeiro.REGISTRO" name="REGISTRO" required
						class="form-control" />
					<div class="messages-alert"
						ng-show="LeiloeiroForm.REGISTRO.$dirty && LeiloeiroForm.REGISTRO.$invalid">
						<span ng-show="LeiloeiroForm.REGISTRO.$error.required">* Campo
							requerido</span>
					</div>
				</div>
                <div class="col-md-2 col-xs-3 form-group">
					<label for="InputREGISTRO">PADRÃO</label> 
                    <select ng-model="leiloeiro.IS_DEFAULT" class="form-control" ng-options="op.id as op.label for op in options">
                     <option value="">--SELECIONE--</option>
                    </select>
                    <div class="messages-alert"
						ng-show="LeiloeiroForm.REGISTRO.$dirty && LeiloeiroForm.REGISTRO.$invalid">
						<span ng-show="LeiloeiroForm.REGISTRO.$error.required">* Campo
							requerido</span>
					</div>
				</div>
            </div>
            <div class="row">  
                 <div class="col-md-2 col-xs-2 form-group">
					<label for="InputCPF">CPF</label> <input
						ng-model="leiloeiro.CPF" name="CPF" required
						class="form-control"  ui-mask="999.999.999-99" />
					<div class="messages-alert"
						ng-show="LeiloeiroForm.CPF.$dirty && LeiloeiroForm.CPF.$invalid">
						<span ng-show="LeiloeiroForm.CPF.$error.required">* Campo
							requerido</span>
					</div>
				</div>  
				<div class="col-md-3 col-xs-4 form-group">
					<label for="InputNome">NOME</label> <input
						ng-model="leiloeiro.NOME" name="NOME" required
						class="form-control" />
					<div class="messages-alert"
						ng-show="LeiloeiroForm.NOME.$dirty && LeiloeiroForm.NOME.$invalid">
						<span ng-show="LeiloeiroForm.NOME.$error.required">* Campo
							requerido</span>
					</div>
				</div>
                <div class="col-md-5 col-xs-6 form-group">
					<label for="InputSNome">SOBRENOME</label> <input
						ng-model="leiloeiro.SOBRENOME" name="SOBRENOME" required
						class="form-control" />
					<div class="messages-alert"
						ng-show="LeiloeiroForm.SOBRENOME.$dirty && LeiloeiroForm.SOBRENOME.$invalid">
						<span ng-show="LeiloeiroForm.SOBRENOME.$error.required">* Campo
							requerido</span>
					</div>
				</div>
               				
				
			</div>
            
            <div class="row">
               
                
                
                <div class="col-md-3 col-xs-4 form-group">
					<label for="InputCPF">CONTA BANCÁRIA</label> 
                    
                    <select ng-model="leiloeiro.CONTA_ID" name="CONTA_ID" required
						class="form-control"  ng-options="conta.ID as conta.CONTA for conta in contasOptions">
                        <option value="">--Selecione uma conta--</option>
                        </select>
					<div class="messages-alert"
						ng-show="LeiloeiroForm.CPF.$dirty && LeiloeiroForm.CPF.$invalid">
						<span ng-show="LeiloeiroForm.CPF.$error.required">* Campo
							requerido</span>
					</div>
				</div>
				
            </div>
            <div class="row">
                <div class="col-md-2 col-xs-3 form-group">
					<label for="InputNome">CEP</label> <input
						ng-model="leiloeiro.CEP" name="CEP" required
						class="form-control" ng-change="autoCep()" ui-mask="99999-999" />
					<div  class="messages-alert"
						ng-show="LeiloeiroForm.CEP.$dirty && LeiloeiroForm.CEP.$invalid">
						<span ng-show="LeiloeiroForm.CEP.$error.required">* Campo
							requerido</span>
					</div>
				</div>
                <div class="col-md-5 col-xs-6 form-group">
					<label for="InputSNome">LOGRADOURO</label> <input
						ng-model="leiloeiro.LOGRADOURO" name="LOGRADOURO" required
						class="form-control" />
					<div class="messages-alert"
						ng-show="LeiloeiroForm.LOGRADOURO.$dirty && LeiloeiroForm.LOGRADOURO.$invalid">
						<span ng-show="LeiloeiroForm.LOGRADOURO.$error.required">* Campo
							requerido</span>
					</div>
				</div>
                
                <div class="col-md-1 col-xs-2 form-group">
					<label for="InputSNome">NÚMERO</label> <input
						ng-model="leiloeiro.NUMERO" name="NUMERO" required
						class="form-control" />
					<div class="messages-alert"
						ng-show="LeiloeiroForm.NUMERO.$dirty && LeiloeiroForm.NUMERO.$invalid">
						<span ng-show="LeiloeiroForm.NUMERO.$error.required">* Campo
							requerido</span>
					</div>
				</div>
                <div class="col-md-2 col-xs-2 form-group">
					<label for="InputSNome">COMPLEMENTO</label> <input
						ng-model="leiloeiro.COMPLEMENTO" name="COMPLEMENTO" 
						class="form-control" />
				</div> 
                 
                     
            </div>
            <div class="row">
            
                  <div class="col-md-3 col-xs-4 form-group">
					<label for="InputSNome">BAIRRO</label> <input
						ng-model="leiloeiro.BAIRRO" name="BAIRRO" required
						class="form-control" />
					<div class="messages-alert"
						ng-show="LeiloeiroForm.BAIRRO.$dirty && LeiloeiroForm.BAIRRO.$invalid">
						<span ng-show="LeiloeiroForm.BAIRRO.$error.required">* Campo
							requerido</span>
					</div>
				</div>
                   <div class="col-md-3 col-xs-4 form-group">
					<label for="InputSNome">CIDADE</label> <input
						ng-model="leiloeiro.CIDADE" name="CIDADE" required
						class="form-control" />
					<div class="messages-alert"
						ng-show="LeiloeiroForm.CIDADE.$dirty && LeiloeiroForm.CIDADE.$invalid">
						<span ng-show="LeiloeiroForm.CIDADE.$error.required">* Campo
							requerido</span>
					</div>
				</div>
                
                <div class="col-md-2 col-xs-2 form-group">
					<label for="InputSNome">UF</label> <input required
						ng-model="leiloeiro.UF" name="UF" 
						class="form-control" />
				</div> 
            </div>
            
            
		</div>
		<!-- /.box-body -->

		<div class="box-footer">
			<button type="submit" ng-click="save()" ng-disabled="LeiloeiroForm.$invalid" class="btn btn-primary">Salvar</button>
			<a href="#/leiloeiros" class="btn btn-danger"><i class="fa fa-ban"></i> Cancelar</a>	
				
			
		</div>
	</form>
</div>
<!-- /.box -->

